<h2>Cinema</h2>

<br/>
<div class="underline">&nbsp;</div>
<div id="inner-container">
    <table border="0" width="960">
        <tr>
            <th>ชื่อ</th>
            <th>ที่นั่ง</th>
            <th>สาขา</th>
	        <th></th>
            <th></th>
        </tr>
        <?php foreach ($cinemas as $key => $cinema) :?>
            <tr>
                <td align="center"><?php echo $cinema->name;?></td>
                <td align="center"><?php echo $cinema->capacity;?></td>
                <td align="center"><?php echo $cinema->branch_name;?></td>
                <td><?php echo anchor('admin/cinema/edit/'.$cinema->id, 'Edit')?></td>
                <td><?php echo anchor('admin/cinema/destroy/'.$cinema->id, 'Delete')?></td>
            </tr>
        <?php endforeach;?>
    </table>
    <br/>
    <div style="text-align:center">
        <?php //echo $this->pagination->create_links(); ?>
    </div>
    <br/><br/>
    <div style="float:right">
    	<?php echo anchor('admin/cinema/create', 'Create Cinema');?>
    </div>
    <div class="clear:both"></div>
</div>